﻿using System.Collections.ObjectModel; 
using WPF.Core;
using WPF.Zero.Models;

namespace WPF.Zero.ViewModels
{
    public class DashboardViewModel: NavigateViewModel
    {
        public DashboardViewModel()
        {
            Title = "首页";
            TopDashBoards = new ObservableCollection<TopStatusItem>()
                {
                    new TopStatusItem()
                    {
                        Title="我的账单",
                        Logo="/Images/NewSubscriptionAmount.png",
                        Amount=10,
                        BackgroundGradientStart = "#f59083",
                        BackgroundGradientEnd = "#fae188",
                    },
                    new TopStatusItem()
                    {
                        Title="记事本",
                        Logo="/Images/NewTenants.png",
                        Amount=38,
                        BackgroundGradientStart = "#ff7272",
                        BackgroundGradientEnd = "#f650c5",
                    },
                    new TopStatusItem()
                    {
                        Title="备忘录",
                        Logo="/Images/DashboardSampleStatistics2.png",
                        Amount=26,
                        BackgroundGradientStart = "#5e7cea",
                        BackgroundGradientEnd = "#1dcce3",
                    }, 
                };
        }

        private ObservableCollection<TopStatusItem> topDashBoards;

        /// <summary>
        /// 统计面板
        /// </summary>
        public ObservableCollection<TopStatusItem> TopDashBoards
        {
            get { return topDashBoards; }
            set { topDashBoards = value; OnPropertyChanged(); }
        }
    }
}
